package com.ysg.enums;

import com.ysg.utils.YStringUtil;

/**
 * 没有钻石类型
 */
public enum NoDiamondEnum {
    text(1,"发送文本等等"),
    gift(2,"发送礼物"),
    call(3,"通话")
    ;

    private final int type;
    private final String label;

    NoDiamondEnum(int type, String label) {
        this.type = type;
        this.label = label;
    }
    public int getType() {
        return type;
    }

    public String getLabel() {
        return label;
    }

    public static NoDiamondEnum getByType(int type) {
        for (NoDiamondEnum typeEnum : NoDiamondEnum.values()) {
            if (YStringUtil.eq(type, typeEnum.getType())) {
                return typeEnum;
            }
        }
        return null;
    }



}
